<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<form class="form-horizontal table-form" name="zsjUserBaseForm" id="zsjUserBaseForm" method="post" action="dirZsjUserBase.action" onsubmit="return $action.query(this)">
  <input type="hidden" name="page.orderFlag" id="page.orderFlag" class="order-flag" value="<ww:property value='page.orderFlag'/>"> 
	<input type="hidden" name="page.orderString" id="page.orderString" class="order-string" value="<ww:property value='page.orderString'/>">
	<input type="hidden" name="page.pageSize" id="page.pageSize" class="page-size" value="<ww:property value='page.pageSize'/>">
	<input type="hidden" name="page.totalPages" id="page.totalPages" class="page-count" value="<ww:property value='page.totalPages'/>">
	<input type="hidden" name="page.currentPage" id="page.currentPage" class="page-current" value="<ww:property value='page.currentPage'/>">
	
			<div class="table-header">
				<div class="table-search">
					<ul>
			     		<li><input class="input-medium" type="text" id="item.userCode" name="item.userCode" maxlength="50"  placeholder="请输入用户编码" value="<ww:property value='item.userCode'/>"></li>
			     		<li><input class="input-medium" type="text" id="item.version" name="item.version" maxlength="50"  placeholder="请输入批次号" value="<ww:property value='item.version'/>"></li>
					    <li>导入状态：<ww:select attributes="class='input-small'" name="'syncFlag'" id="syncFlag" value="syncFlag"  list="#dictID.getDictType('sync_data_status')" listKey="code" listValue="name"></ww:select> </li>
					    
					    <li>
					    	<ww:button css="btn btn-sm btn-primary" caption="查询" funcode="acl_zsjuserbase/dirZsjUserBase" type="submit"></ww:button>
					    </li>
					</ul>
				</div>
				<div class="table-btn">
					<ww:if test='syncFlag.equals("1")'>
					<div class="btn-group">
						<ww:link css="btn btn-default btn-sm" caption="<i class='fa fa-plus'></i> 添加" title="添加zsj_user_base" target="cssDialog" rel="getZsjUserBase" href="getZsjUserBase.action"></ww:link>
					</div>
					</ww:if>
					<div class="btn-group">
						<ww:link css="btn btn-default btn-sm" caption="<i class='fa fa-trash-o'></i> 删除" onclick="$action.execBatch(this,{url:'delZsjUserBase.action',title:'确认要进行删除操作?'});"></ww:link>
					</div>
					<ww:if test='!syncFlag.equals("2")'>
					<div class="btn-group">
						<ww:link css="btn btn-default btn-sm" caption="<i class='fa fa-hand-o-up'></i> 导入选中" onclick="$action.execBatch(this,{url:'syncZsjUser.action',title:'确认要进行此操作?'});"></ww:link>
					</div>
					</ww:if>
					<ww:if test='syncFlag.equals("1")'>
						<div class="btn-group">
							<ww:link css="btn btn-default btn-sm" caption="<i class='fa fa-repeat'></i> 全部导入" onclick="$action.exec(this,{url:'syncZsjUser.action?flag=all',title:'确认要进行此操作?'});"></ww:link>
						</div>
					</ww:if>
				</div>
			</div>
			<!-- /.box-header -->
			<table class="table table-bordered">
			<thead>
			<tr>
				<th width="25px"><input group="ids" class="cleck-all" type="checkbox"/></th>
				<th width="50px">操作</th>
	     	 	<th width="100px" order-field="userCode" class="order">用户编码</th>
	     	 	<th width="70px" order-field="userName" class="order">用户姓名</th>
	     	 	<th width="130px" order-field="userId" class="order">用户ID</th>
				<th width="40px" order-field="version" class="order">批次</th>
	     	 	<th width="60px" order-field="type" class="order">账号类型</th>
	     	 	<th width="130px" order-field="createDate" class="order">操作时间</th>
	     	 	<th width="60px" order-field="syncFlag" class="order">导入状态</th>
	     	 	<th order-field="syncResult" class="order">备注</th>
			</tr>
		</thead>
		<tbody>
		  <ww:iterator value="page.results" id="data" status="data">
			<tr>
				<td class="text-center"><input type="checkbox"  name="ids" id="ids" value="<ww:property value="userCode" />"/></td>
				<td class="text-center">
<%-- 					<ww:link funcode="acl_zsjuserbase/updZsjUserBase" caption="修改"  title="修改zsj_user_base"  target="cssDialog" rel="getZsjUserBase" href="getZsjUserBase.action?userCode=%{userCode}" ></ww:link> 
 --%>					<ww:link funcode="acl_zsjuserbase/delZsjUserBase" caption="删除" onclick="$action.exec(this,{url:'delZsjUserBase.action?ids=%{userCode}',title:'确认要进行删除操作?'})" href="javascript:;"></ww:link> 
				</td>
					<td class="text-center"><ww:property value="userCode"/></td>
					<td class="text-center"><ww:property value="userName"/></td>
					<td class="text-center"><ww:property value="userId"/></td>
					<td class="text-center"><ww:property value="version"/></td>
					<td class="text-center"><ww:property value="#dictID.getDictType('account_login_type',type).name" /></td>
					<td class="text-center"><ww:property value="new java.text.SimpleDateFormat('yy/MM/dd HH:mm:ss').format(createDate)"/></td>
					<td class="text-center"><ww:property value="#dictID.getDictType('sync_data_status',syncFlag).remark"/></td>
					<td><ww:property value="syncResult"/></td>
			</tr>
			</ww:iterator>
		</tbody>
	</table>
				<div class="pagination">
					<ww:property value="page.pageSplit" />
				</div>
			<!-- /.box-body -->
		</div>
	</div>
</form>